import request from '@/utils/request'

export const GetCoordinationManageList = (
  coordination,
  state,
  page,
  page_size
) => {
  return request({
    url: '/v1/departmentWork/coordination/manageList/',
    method: 'get',
    params: { coordination, state, page, page_size },
  })
}

export const GetCoordinationWorkList = (
  coordination,
  state,
  page,
  page_size
) => {
  return request({
    url: '/v1/departmentWork/coordination/workList/',
    method: 'get',
    params: { coordination, state, page, page_size },
  })
}

export const DispatchCoordination = (coordination, data) => {
  return request({
    url: '/v1/departmentWork/coordination/dispatch/',
    method: 'post',
    params: { coordination },
    data,
  })
}

export const FinishCoordination = (coordination, data) => {
  return request({
    url: '/v1/departmentWork/coordination/finish/',
    method: 'post',
    params: { coordination },
    data,
  })
}

export const StateCoordination = (start, end) => {
  return request({
    url: '/v1/departmentWork/coordination/statistics/',
    method: 'get',
    params: { start, end },
  })
}
